﻿using System;
using System.Collections.Generic;
using DevExpress.Xpo;
using System.Text;

namespace BusinessObjects
{
    public class NamThucTap : XPObject
    {
        public NamThucTap()
            : base()
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public NamThucTap(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }

        //Fields
        string fNamHoc;
        [Size(50)]
        public string NamHoc
        {
            get { return fNamHoc; }
            set { SetPropertyValue<string>("NamHoc", ref fNamHoc, value); }
        }
        [Association(@"SinhVienTrongNamReferencesNamThucTap", typeof(SinhVienTrongNam))]
        public XPCollection<SinhVienTrongNam> SinhVienTrongNams { get { return GetCollection<SinhVienTrongNam>("SinhVienTrongNams"); } }
        [Association(@"CongTyTrongNamReferencesNamThucTap", typeof(CongTyTrongNam))]
        public XPCollection<CongTyTrongNam> CongTyTrongNams { get { return GetCollection<CongTyTrongNam>("CongTyTrongNams"); } }
        [Association(@"GiangVienTrongNamReferencesNamThucTap", typeof(GiangVienTrongNam))]
        public XPCollection<GiangVienTrongNam> GiangVienTrongNams { get { return GetCollection<GiangVienTrongNam>("GiangVienTrongNams"); } }
    }
}
